package com.eleadmin.common.system.param;

import com.eleadmin.common.core.annotation.QueryField;
import com.eleadmin.common.core.annotation.QueryType;
import com.eleadmin.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 查询参数
 *
 * @author EleAdmin
 * @since 2024-03-01 22:02:39
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "OrderParam对象", description = "查询参数")
public class OrderParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @QueryField(type = QueryType.EQ)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @ApiModelProperty(value = "民宿id")
    @QueryField(type = QueryType.EQ)
    private Integer homestayId;

    @ApiModelProperty(value = "入住时间")
    private String liveDate;

    @ApiModelProperty(value = "入住天数")
    @QueryField(type = QueryType.EQ)
    private Integer days;

    @ApiModelProperty(value = "价格")
    @QueryField(type = QueryType.EQ)
    private BigDecimal prices;

    @ApiModelProperty(value = "名宿名称")
    private String homestayName;
}
